home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VQCURADD.S < prev    next >
Text File  |  1993-03-26  |  1KB  |  46 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*-----------------------------------------------------------------------
  7. ;* Inquire current alpha cursor address.
  8. ;*-----------------------------------------------------------------------
  9.  
  10.           globl     _vq_curaddress
  11. _vq_curaddress:
  12.  
  13. ;    .cargs    #8,handle.w,row.l,col.l
  14.  
  15. handle      =         8
  16. row       =         10
  17. col       =         14
  18.  
  19.           link        a6,#-4
  20.  
  21. ;          VContrl    #5,#15
  22.           move.w    handle(a6),-(sp)    ; contrl[6]
  23.           move.w    #15,-(sp)            ; contrl[5]
  24.           subq.l    #2,sp                ; contrl[4]
  25.           clr.l     -(sp)                ; contrl[3,2]
  26.           clr.w     -(sp)                ; contrl[1]
  27.           move.w    #5,-(sp)            ; contrl[0]
  28.  
  29.           subq.l    #4,sp                ;* -> ptsout
  30.           pea        -4(a6)                ;* -> intout
  31.           subq.l    #8,sp                ;* -> ptsin, intin
  32.           pea        16(sp)                ;* -> contrl
  33.  
  34.           move.l    sp,d1
  35.           jsr        vditrap
  36.  
  37.           move.l    row(a6),a0
  38.           move.w    -4(a6),(a0)         ;* Return row.
  39.           move.l    col(a6),a0
  40.           move.w    -2(a6),(a0)         ;* Return column.
  41.  
  42.           unlk        a6
  43.           rts
  44.  
  45.           end
  46.